package com.zy.cat.entity.game;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;
import javax.persistence.Index;
import javax.persistence.Table;
import com.zy.cat.entity.primary.CardNewHistoryPrimary;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 
 * @info <p> 9趣猫刮刮卡，新人礼包记录 </p>
 * 		 <p> 新人专享礼物--登录当天起至七天后结束。侧浮窗也下线 刮卡领2888现金豆</p>
 *       <p> 第一天100；第二天100:；第三天500；第四天100；第五天100；第六天100； 第七天1888</p>
 *       <p> 进入游戏即可弹窗，当天天数标亮。签到天数打对号。没签到标识未签到 当前天数的下一天，标识明日可领取。 点击去刮卡，当前天数现金豆到账</p>
 * @author Link
 * @date 2019-10-30 09:14
 */
@Entity
@Table(name = "zy_cat_game_card_new_history", indexes = { 
		@Index(name = "pid", columnList = "pid"),
		@Index(name = "days", columnList = "days"), 
		@Index(name = "dstatus", columnList = "dstatus"),
		@Index(name = "ctime", columnList = "ctime") })
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("9趣猫刮刮卡，新人礼包记录")
@IdClass(CardNewHistoryPrimary.class)
public class CardNewHistory {

	@Id
	@Column(columnDefinition = "VARCHAR(20) NOT NULL COMMENT '用户账号ID[9趣猫刮刮卡，每日抽奖次数获取记录]'")
	@ApiModelProperty(value = "用户账号ID", example = "fe53d6a4fa29641")
	private String pid;
	
	@Id
	@Column(columnDefinition = "INT(2) NOT NULL COMMENT '注册第N天'")
	@ApiModelProperty(value = "注册第N天", example = "1")
	private int days;
	
	@Column(columnDefinition = "VARCHAR(10) NOT NULL  COMMENT '签到日'")
	@ApiModelProperty(value = "签到日", example = "2019-02-22")
	private String ctime;

	@Column(columnDefinition = "INT(2) DEFAULT '0' COMMENT '签到奖励金豆'")
	@ApiModelProperty(value = "签到奖励金豆数", example = "6")
	private int dcount;
	
	@Column(columnDefinition = "INT(2) DEFAULT '0' COMMENT '是否签到（0.未签到、1.已签到）'")
	@ApiModelProperty(value = "是否签到（0.未签到、1.已签到）", example = "0")
	private int dstatus;

	@Column(columnDefinition = "VARCHAR(20) DEFAULT '-'  COMMENT '签到时间'")
	@ApiModelProperty(value = "签到时间", example = "2019-02-22 10:10:10")
	private String ltime;

	public CardNewHistory(String pid) {
		this.pid = pid;
	}

}
